package com.genius.reservation.driver.entity;

import com.genius.reservation.car.entity.ReservationStartCarInformation;
import lombok.Data;

import java.io.Serializable;

/**
 * @ClassName ArriveEntity
 * @FullClassName jh-demo.com.genius.reservation.driver.entity.ArriveEntity.java
 * @Date 2023-04-24 15-01-41
 * @Description TODO
 * @Author 73424
 **/
@Data
public class ArriveEntity implements Serializable {
    private ReservationStartCarInformation driver;
    private int timeOutStatus;
    private int platformStatus;
    private int receiverStatus;
    private int goIntoStatus;
    private String timeOutMsg;
    private String receiveMsg;
    private String receiverManagerPhone;
    private String receiverPhone;
    private enum timeOutMsg{
        TIME_ON(0,"感谢您的准时到达"),
        TIME_AFTER(1,"您迟到了"),
        TIME_BEFORE(2,"感谢您,您提前了");
        private int code;
        private String msg;
        timeOutMsg(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }

    public ArriveEntity(ReservationStartCarInformation driver) {
        this.driver = driver;
    }
}
